<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"> 
<meta name="viewport" content="width=device-width, initial-scale=1"> 
<title>login</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/logincss/normalize.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/logincss/demo.css" />
<!--必要样式-->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/logincss/component.css" />
<!--[if IE]>
<script src="js/html5.js"></script>
<![endif]-->
</head>
<body>
		<div class="container demo-1">
			<div class="content">
				<div id="large-header" class="large-header">
					<canvas id="demo-canvas"></canvas>
					<div class="logo_box">
						<h3>远大伟业 欢迎你</h3>
						<div style="width:100px;background-color:#00FA9A;text-align:center;border:1px solid #ccc;border-radius:25px;margin:0 auto;display:none;" id="deng">登入成功</div>
						<form action="{:U('index')}" name="f" method="post" id="yformID">
							<div class="input_outer">
								<span class="u_user"></span>
								<input name="name" class="text" style="color: #FFFFFF !important" type="text" placeholder="请输入账户">
							</div>
							<div class="input_outer">
								<span class="us_uer"></span>
								<input name="password" class="text" style="color: #FFFFFF !important; position:absolute; z-index:100;"value="" type="password" placeholder="请输入密码">
							</div>
							<div class="mb2" onclick="dian()"><a class="act-but submit"  style="color: #FFFFFF;width:330px;">登录</button></a>
						</form>
					</div>
				</div>
			</div>
		</div><!-- /container -->
		<script src="__PUBLIC__/js/loginjs/TweenLite.min.js"></script>
		<script src="__PUBLIC__/js/loginjs/EasePack.min.js"></script>
		<script src="__PUBLIC__/js/loginjs/rAF.js"></script>
		<script src="__PUBLIC__/js/loginjs/demo-1.js"></script>
		<script src="__PUBLIC__/jquery-1.7.2.min.js"></script>
		<script>

			function dian()
			{
				$.ajax({
		            type: "POST",
		            url:"{:U('Login/index')}",
		            data:$('#yformID').serialize(),// 要提交的表单 
		            success: function(msg) {
		            	console.log(msg);
		                if (msg == 111) {
		                	$('#deng').show();
		                     location.href="{:U('Index/index')}";
		                }else{
		                    layer.msg('申请失败,请重新再试!');
		                }
		            }
		        });
			}


		</script>
	</body>
</html>